﻿<Window x:Class="WPFDiagramming.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:WPFDiagramming.Controls"
        Title="MainWindow" Height="350" Width="525">
    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0" Name="stpToolBox">
            <Button Click="Button_Click">Element</Button>
            <Button Click="Button_Click_1">Association</Button>
        </StackPanel>
        <GridSplitter BorderThickness="1" BorderBrush="Black"></GridSplitter>
        <l:DiagramPanel Grid.Column="1" x:Name="cnvPanel" >
            <l:Entity x:Name="t1" Canvas.Top="20" Canvas.Left="100" Width="100" Height="25" Opacity="1" />
            <l:Entity x:Name="t2" Canvas.Top="80" Canvas.Left="300" Width="100" Height="25" Opacity="1" />
        </l:DiagramPanel>

    </Grid>
</Window>
